package com.situ.supermarket.service;


import com.situ.supermarket.entity.User;
import com.situ.supermarket.vo.ResultVO;
import com.situ.supermarket.vo.TableVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {
    TableVO select(Integer page, Integer limit, String username, String name);

    TableVO save(User u);

    ResultVO delete(Integer id);

    User info(Integer id);

    boolean check(String username, String password);

    TableVO UpdatePassword(String oldPassword, String newPassword, String newPasswordAgain, HttpServletRequest request, HttpServletResponse response);

    User selectByUsername(String username);

    User selectUsername(String username);
}
